package com.example.jackson.dto;

import lombok.Data;

@Data
public class UserDTO {
    private String name;
    private Integer age;

    /**
     * 方法以get/set开头，会进行序列化
     * @return
     */
    public String getAddr() {
        return "beijing";
    }

    /**
     * 这种不会序列化
     * @return
     */
    public String work() {
        return "work";
    }
}
